module.exports = function(number) {
    const arr = [];
    let i = 0;
    let sum = 0;
    while(sum < number) {
        i++;
        const b = 1 << i;
        if((number & b) > 0) {
            if(arr.indexOf(b) > -1) {
                return arr;
            }
            sum += b;
            arr.push(b);
        }
    }
    return arr;
};
